package com.camtc.camcenter.property;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * <p>
 * appliction.y
 * </p>
 *
 * @author chentianshun
 * @since 2021-07-28
 */
@Component
public class ApplicationProperties {

    @Autowired
    private Environment environment;

    public String getProperty(String key) {
        return environment.getProperty(key);
    }

}
